<?php $this->beginContent('//layouts/main'); ?>
	
<!--顶级菜单begin -->
<div id="top-main-menu" class="clearfix">
  <div id="gnav">
    <ul class="clearfix">
      <?php if($this->id==='notice') { ?>
         <li class="gnav-01 selected">公告通知</li>
      <?php }else {?>
         <li class="gnav-01"><a href="<?php echo $this->createUrl('/notice');?>">公告通知</a></li>
      <?php }?>
      <?php if(Yii::app()->user->checkAccess('MENU1_SJLR')) { ?>
	      <?php if($this->id==='input') { ?>
	         <li class="gnav-02 selected">数据输入</li>
	      <?php }else {?>
	         <li class="gnav-02"><a href="<?php echo $this->createUrl('/input');?>">数据输入</a></li>
	      <?php }?>
      <?php } ?>
      <?php if(Yii::app()->user->checkAccess('MENU1_TJBB')) { ?>
	      <?php if($this->id==='report') { ?>
	         <li class="gnav-03 selected">统计报表</li>
	      <?php }else {?>
	         <li class="gnav-03"><a href="<?php echo $this->createUrl('/report');?>">统计报表</a></li>
	      <?php }?>
      <?php } ?>
      <?php //if(Yii::app()->user->checkAccess('MENU1_KCFX')) { ?>
	      <?php if($this->id==='stock') { ?>
	         <li class="gnav-07 selected">库存分析</li>
	      <?php }else {?>
	         <li class="gnav-07"><a href="<?php echo $this->createUrl('/stock');?>">库存分析</a></li>
	      <?php }?>
      <?php //} ?>
      <?php if(Yii::app()->user->checkAccess('MENU1_ZLXG')) { ?>
	      <?php if($this->id==='info') { ?>
	         <li class="gnav-04 selected">资料变更</li>
	      <?php }else {?>
	         <li class="gnav-04"><a href="<?php echo $this->createUrl('/info/change');?>">资料变更</a></li>
	      <?php }?>
      <?php } ?>
      <?php if(Yii::app()->user->checkAccess('MENU1_HTGL')) { ?>
	      <?php if($this->id==='manager') { ?>
	         <li class="gnav-06 selected">后台管理</li>
	      <?php }else {?>
	         <li class="gnav-06"><a href="<?php echo $this->createUrl('/manager');?>">资料变更</a></li>
	      <?php }?>
      <?php } ?>
      <li class="gnav-05"><a href="<?php echo $this->createUrl('/site/logout');?>">退出登陆</a></li>
    </ul>
  </div>
</div>
<!--顶级菜单end -->
<!--左侧子菜单begin -->
<div id="nav">
  <div class="top"></div>
  <div class="inner">
    <div class="section">
      <h3><?php echo $this->leftmenusTitle ?></h3>
      <ul class="menu">
        <?php foreach ($this->leftmenus as $value) { ?>
          <?php if(isset($value['isValid'])&&$value['isValid']) { ?>
          	  <?php if(isset($value['isNew'])&&$value['isNew']) { ?>
          	  	  <li><b style="color:red;">[新]</b><a href="<?php echo $value['href'] ?>"><?php echo mb_strcut($value['menutext'],0,44,'utf-8') ?></a></li>
          	  <?php }else{?>
          	  	  <li><a href="<?php echo $value['href'] ?>"><?php echo mb_strcut($value['menutext'],0,45,'utf-8') ?></a></li>
          	  <?php }?>
       		
       	  <?php } ?>
        <?php } ?>

      </ul>
    </div>
    <!--div.inner -->
  </div>
  <div class="bottom"></div>
</div>
<!--左侧子菜单end -->

<?php echo $content; ?>

<?php $this->endContent(); ?>